package cz.boxdesign.library.umgr.domain;

import java.util.Collection;

import org.springframework.security.core.GrantedAuthority;
import org.springframework.security.core.userdetails.User;

/**
 *
 * @author jlattenberk
 *
 */
public class AuthentificatedUserDTO extends User {

  private static final long serialVersionUID = 2262099725404366551L;

  private String displayName;
  private String userId;

  public AuthentificatedUserDTO(String username, String password, boolean enabled, boolean accountNonExpired,
      boolean credentialsNonExpired, boolean accountNonLocked, Collection<GrantedAuthority> authorities, String displayName, String userId) {
    super(username, password, enabled, accountNonExpired, credentialsNonExpired, accountNonLocked, authorities);
    this.displayName = displayName;
    this.userId = userId;
  }

  /**
   * @return the displayName
   */
  public String getDisplayName() {
    return displayName;
  }

  /**
   * @return the userId
   */
  public String getUserId() {
    return userId;
  }

}
